---@class GT.game 游戏
GT.game=class()

--- 设置分辨率
---@param role Role 玩家
---@param x_resolution Float 横向分辨率
---@param y_resolution Float 纵向分辨率
function GT.game.set_screen_resolution(role,x_resolution,y_resolution)
    game_api.set_screen_resolution(role,x_resolution,y_resolution)
end

--- 设置画质
---@param role Role 玩家
---@param quality Str 画质
function GT.game.set_image_quality(role,quality)
    game_api.set_image_quality(role,quality)
end

--- 设置窗口
---@param role Role 玩家
---@param window_type Str 样式
function GT.game.set_window_type(role,window_type)
    game_api.set_window_type(role,window_type)
end

--- 获取初始化游戏画质
---@return Str
function GT.game.get_graphics_quality()
    return game_api.get_graphics_quality()
end

--- 获取初始化窗口类别
---@return Str
function GT.game.get_window_mode()
    return game_api.get_window_mode()
end

--- 获取初始化横向分辨率
---@return Int32
function GT.game.get_game_x_resolution()
    return game_api.get_game_x_resolution()
end

--- 获取初始化纵向分辨率
---@return Int32
function GT.game.get_game_y_resolution()
    return game_api.get_game_y_resolution()
end

--- 获取屏幕横向分辨率
---@return Int32
function GT.game.get_screen_x_resolution()
    return game_api.get_screen_x_resolution()
end

--- 获取屏幕纵向分辨率
---@return Int32
function GT.game.get_screen_y_resolution()
    return game_api.get_screen_y_resolution()
end
--- 获取当前游戏模式
---@return GameMode
function GT.game.get_game_mode()
    game_api.get_game_mode()
end

--- 获取初始化背景音乐开关状态
---@return Bool
function GT.game.get_bgm_state()
    game_api.get_bgm_state()
end

--- 获取初始化战斗音效开关状态
---@return Bool
function GT.game.get_battle_bgm_state()
    game_api.get_battle_bgm_state()
end

--- 获取初始化背景音乐音量
---@return Int32
function GT.game.get_bgm_volume()
    game_api.get_bgm_volume()
end

--- 获取初始化战斗音效音量
---@return Int32
function GT.game.get_battle_volume()
    game_api.get_battle_volume()
end



--- 暂停游戏
function GT.game.pause_game()
    game_api.pause_game()
end

--- 结束游戏
---@param player_results Dict 玩家结算信息
function GT.game.game_end(player_results)
    game_api.game_end(player_results)
end

--- 开启软暂停
function GT.game.api_soft_pause_game()
    game_api.api_soft_pause_game()
end

--- 关闭软暂停
function GT.game.api_soft_resume_game()
    game_api.api_soft_resume_game()
end

--- 按阵营显示游戏结束信息
---@param camp_id CampID 阵营编号
---@param result Str 结束信息
function GT.game.show_game_end_ui_by_camp_id(camp_id,result)
    game_api.show_game_end_ui_by_camp_id(camp_id,result)
end

--- 当前游戏运行时间
---@return Fixed
function GT.game.get_cur_game_time()
    game_api.get_cur_game_time()
end


--- 为玩家开关全局视野
---@param enable Bool 开关
function GT.game.enable_fow_for_player(enable)
    game_api.enable_fow_for_player(enable)
end


--- 获取本局游戏环境
---@return StartMode
function GT.game.api_get_start_mode()
    return game_api.api_get_start_mode()
end